package cn.niit.controller;

import cn.niit.entity.SysResource;
import cn.niit.entity.SysUser;
import cn.niit.service.SysResourceService;
import cn.niit.service.SysUserService;
import jdk.nashorn.internal.ir.CallNode;
import org.apache.shiro.SecurityUtils;
import org.apache.shiro.subject.PrincipalCollection;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import javax.servlet.ServletContext;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import java.security.Principal;
import java.util.List;
import java.util.Map;

@Controller
public class IndexController {
    @Autowired
    private SysUserService sysUserService;
    @Autowired
    private SysResourceService sysResourceService;


      @GetMapping(value = {"/index", "/"})
        public String index(){
            System.out.println("进入主页.......................");
            return "index";
        }


}
